#include "startGameTitle.h"
#include "cocostudio/CocoStudio.h"

USING_NS_CC;
using namespace cocostudio::timeline;

startGameTitle::startGameTitle(void)
{
}


startGameTitle::~startGameTitle(void)
{
}

Scene* startGameTitle::createScene()
{
	Scene* scene=Scene::create();
	startGameTitle* sgt=startGameTitle::create();

	scene->addChild(sgt);

	return scene;
}

bool startGameTitle::init()
{
	if (!Layer::init())
	{
		return false;
	}

	auto title=CSLoader::createNode("title.csb");
	this->addChild(title);

	auto timeLine=CSLoader::createTimeline("title.csb");
	timeLine->gotoFrameAndPlay(0,200,false);
	title->runAction(timeLine);

	return true;
}